﻿@*@using ForzaGT3.Data
@{
    IEnumerable<Gallery> galleries = Gallery.GetAll().OrderByDescending(x => x.CreatedDate).Take(4);
}
<div class="yellowbg header">
    GALLERY <span class="more"><a href="@Url.Action(MVC.Gallery.Index())">More</a> </span>
</div>
@if (galleries != null)
{
    foreach (Gallery data in galleries)
    {
        <img src="@Url.Content("~" + data.ThumbUrl)" alt="@data.Title" />
    }
}*@
<div class="yellowbg header">
    Twitter Feed <span class="more"><a target="_blank" href="https://twitter.com/Forza_GT3">Follow</a> </span>
</div>
<script type="text/javascript" src="http://widgets.twimg.com/j/2/widget.js"></script>
<script type="text/javascript">
    new TWTR.Widget({
        version: 2,
        type: "search",
        search: "Forza_GT3",
        interval: 2000,
        subject: "Forza_GT3",
        width: 270,
        height: 153,
        theme: {
            shell: {
                background: "#252525",
                color: "#ffffff"
            },
            tweets: {
                background: "#252525",
                color: "#ffffff",
                links: "#ff0000"
            }
        },
        features: {
            scrollbar: false,
            loop: true,
            live: true,
            hashtags: true,
            timestamp: true,
            avatars: false,
            toptweets: false,
            behavior: 'default'
        }
    }).render().start();
</script>
